home *** CD-ROM | disk | FTP | other *** search
/ Amiga Format CD 41 / Amiga Format CD41 (1999-06)(Future Publishing)(GB)[!][issue 1999-07].iso / -seriously_amiga- / misc / vinced / include / vnc / macros.h < prev    next >
C/C++ Source or Header  |  1999-04-19  |  4KB  |  79 lines

  1. #ifndef VNC_MACROS_H
  2. #define VNC_MACROS_H
  3. /*********************************************************
  4.  ** ViNCEd                                              **
  5.  ** a DOS - window handler                              **
  6.  **                                                     **
  7.  ** © 1991-98 THOR-Software inc.                        **
  8.  ** Version 3.60                                        **
  9.  **                                                     **
  10.  ** program version 3.60 20 Aug 1998    THOR            **
  11.  **                                                     **
  12.  ** ViNCEd Macro functions                              **
  13.  **-----------------------------------------------------**
  14.  **                                                     **
  15.  ** all use at your own risk,etc.,etc.                  **
  16.  **                                                     **
  17.  ** Everything declared as "reserved" or                **
  18.  ** "not used" is NOT free for your use,                **
  19.  ** it will propably used in a later release.           **
  20.  ** All FREE entries are free for public                **
  21.  ** use and are, if not otherwise noticed,              **
  22.  ** initialized as ZERO                                 **
  23.  *********************************************************/
  24.  
  25. #ifndef EXEC_TYPES_H
  26. #include <exec/types.h>
  27. #endif
  28.  
  29. #ifndef VNC_WINDOW_H
  30. #include <vnc/window.h>
  31. #endif
  32.  
  33. /* A macro. The whole structure is allocvec'd, with the name attached
  34.   at the END of this structure */
  35.  
  36. struct ViNCMacro {
  37.         struct ViNCMacro        *vmac_succ;
  38.         struct ViNCMacro        *vmac_pred;     /* linked list */
  39.         UBYTE                    vmac_type;     /* set to VINC_MACROTYPE */
  40.         BYTE                     vmac_count;    /* set to the NEGATED number
  41.                                                    of the macro, e.g -5
  42.                                                    is macro 5 */
  43.         char                    *vmac_text;     /* pointer to the name */
  44.         char                    *vmac_shortcut; /* this is filled in by
  45.                                                    the library, do not
  46.                                                    care about it. It
  47.                                                    shortens the name to
  48.                                                    max. displayable, 
  49.                                                    probably with an 
  50.                                                    ellipsis. */
  51. };
  52.  
  53. /* This macro holds, too, the system strings. vmac_shortcut should not
  54.    be expected to be available in those cases. The size of the menu
  55.    shortcut is internal. Do not care about it, and do not access the
  56.    shortcut pointer at all. */
  57.  
  58. /* A button. Looks almost the same, and is allocated in the same way. */
  59.  
  60. struct ViNCButton {
  61.         struct ViNCButton       *vbut_succ;
  62.         struct ViNCButton       *vbut_pred;     /* linked list */
  63.         UBYTE                    vbut_type;     /* set to VINC_MACROTYPE */
  64.         BYTE                     vbut_count;    /* set to the NEGATED number
  65.                                                    of the button, e.g -5
  66.                                                    is button 5 */
  67.         char                    *vbut_text;     /* pointer to the name */
  68.         char                    *vbut_title;    /* what to put into the
  69.                                                    title bar */
  70. };
  71.  
  72. #define VINC_MACROTYPE  0x1e
  73.  
  74. /* The sizes of all strings are limited. The size of a macro body and the
  75.    button body is limited to VPF_FUNCLENGTH, the size of the button title
  76.    is limited to VPF_SHORTLENGTH. See vnc/prefs.h for the defines */
  77.  
  78. #endif
  79.